<T:ViewBase x:Class="WPFExcelReport.TQSZNTVOR02"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL" 
                    xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"  
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                    Background="White"  
                    Loaded="Window_Loaded"
     >
    <T:ViewBase.Resources>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:TIMES100  x:Key="X100"/>
        <ucd:TIMES10  x:Key="X10"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:PreisConverter  x:Key="PreisConverter"/>
        <ucd:PNumConverter  x:Key="pnum"/>
        <ucd:TextTrimmingConverter  x:Key="Trim"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>  
    </T:ViewBase.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="1*"></RowDefinition>
        </Grid.RowDefinitions>
        <StackPanel Grid.Row="0">
        <WrapPanel>
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=QSTMANDANT:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwQSZNTVOR.QSTMANDANT}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=QSTAUFKRS:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwQSZNTVOR.QSTAUFKRS}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=QSTAUFLFD:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwQSZNTVOR.QSTAUFLFD}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=QSTAUFPOS:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwQSZNTVOR.QSTAUFPOS}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=QSTSZENNR:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwQSZNTVOR.QSTSZENNR}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=QSTLSG:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwQSZNTVOR.QSTLSG}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=QSTSTARTPUNKT:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwQSZNTVOR.QSTSTARTPUNKT}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=QSTBRTVON:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwQSZNTVOR.QSTBRTVON}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=QSTBRTBIS:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwQSZNTVOR.QSTBRTBIS}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=QSTAENZL:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwQSZNTVOR.QSTAENZL}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=QSTAENB:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwQSZNTVOR.QSTAENB}" Width="Auto" />
            </Grid> 
        </WrapPanel>
        <WrapPanel Visibility="{Binding IsQSZNTVOR,Converter={StaticResource ResourceKey=bv}}">
                <ex:TBASE1></ex:TBASE1>
            </WrapPanel>
        </StackPanel>
        <DataGrid  Grid.Row="1"  VerticalAlignment="Top"  
                                   AutoGenerateColumns="False"
                                   EnableRowVirtualization="False"
                                   VerticalScrollBarVisibility="Auto"
                                   HorizontalScrollBarVisibility="Auto"
                                   HeadersVisibility="Column"     
                                   ItemsSource="{Binding vwQSZNTVOR}"  
                                    IsSynchronizedWithCurrentItem="True"
                                   SelectedItem="{Binding Path=dwQSZNTVOR, Mode=TwoWay}"
                                   x:Name="dlgVKP"  
                                   RowDetailsVisibilityMode="Visible" Grid.ColumnSpan="2" Margin="0,0.2,0.2,0"
                    >
            <DataGrid.Columns> 
                <DataGridTextColumn x:Name="QSTMANDANT"
                                    Binding="{Binding Path=QSTMANDANT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QSTMANDANT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QSTAUFKRS"
                                    Binding="{Binding Path=QSTAUFKRS, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QSTAUFKRS}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QSTAUFLFD"
                                    Binding="{Binding Path=QSTAUFLFD, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QSTAUFLFD}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QSTAUFPOS"
                                    Binding="{Binding Path=QSTAUFPOS, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QSTAUFPOS}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QSTSZENNR"
                                    Binding="{Binding Path=QSTSZENNR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QSTSZENNR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QSTLSG"
                                    Binding="{Binding Path=QSTLSG, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QSTLSG}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QSTSTARTPUNKT"
                                    Binding="{Binding Path=QSTSTARTPUNKT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QSTSTARTPUNKT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QSTBRTVON"
                                    Binding="{Binding Path=QSTBRTVON, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QSTBRTVON}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QSTBRTBIS"
                                    Binding="{Binding Path=QSTBRTBIS, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QSTBRTBIS}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QSTAENZL"
                                    Binding="{Binding Path=QSTAENZL, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QSTAENZL}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QSTAENB"
                                    Binding="{Binding Path=QSTAENB, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QSTAENB}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QSTAEND"
                                    Binding="{Binding Path=QSTAEND, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QSTAEND}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QSTNEUB"
                                    Binding="{Binding Path=QSTNEUB, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QSTNEUB}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QSTNEUD"
                                    Binding="{Binding Path=QSTNEUD, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QSTNEUD}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QSTSTKID"
                                    Binding="{Binding Path=QSTSTKID, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QSTSTKID}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QSTAPOS"
                                    Binding="{Binding Path=QSTAPOS, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QSTAPOS}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QSTZENSUR"
                                    Binding="{Binding Path=QSTZENSUR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QSTZENSUR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QSTGKREGEL"
                                    Binding="{Binding Path=QSTGKREGEL, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QSTGKREGEL}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QSTGUETEKL"
                                    Binding="{Binding Path=QSTGUETEKL, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QSTGUETEKL}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QSTENDPUNKT"
                                    Binding="{Binding Path=QSTENDPUNKT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QSTENDPUNKT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QSTABSCHNITT"
                                    Binding="{Binding Path=QSTABSCHNITT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QSTABSCHNITT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QSTANZABSSTK"
                                    Binding="{Binding Path=QSTANZABSSTK, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QSTANZABSSTK}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QSTSTKLAENGE"
                                    Binding="{Binding Path=QSTSTKLAENGE, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QSTSTKLAENGE}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QSTKUNDNR"
                                    Binding="{Binding Path=QSTKUNDNR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QSTKUNDNR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QSTPROBE"
                                    Binding="{Binding Path=QSTPROBE, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QSTPROBE}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QSTKUNDENPROBE"
                                    Binding="{Binding Path=QSTKUNDENPROBE, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QSTKUNDENPROBE}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QSTGRATISPROBE"
                                    Binding="{Binding Path=QSTGRATISPROBE, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QSTGRATISPROBE}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QSTANZSHD"
                                    Binding="{Binding Path=QSTANZSHD, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QSTANZSHD}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QSTANZPKTFEHL"
                                    Binding="{Binding Path=QSTANZPKTFEHL, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QSTANZPKTFEHL}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QSTANZLNGFEHL"
                                    Binding="{Binding Path=QSTANZLNGFEHL, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QSTANZLNGFEHL}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QSTANZNAEHTE"
                                    Binding="{Binding Path=QSTANZNAEHTE, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QSTANZNAEHTE}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QSTANZFEHLPKT"
                                    Binding="{Binding Path=QSTANZFEHLPKT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QSTANZFEHLPKT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QSTPFVERGUET"
                                    Binding="{Binding Path=QSTPFVERGUET, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QSTPFVERGUET}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QSTLFVERGUET"
                                    Binding="{Binding Path=QSTLFVERGUET, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QSTLFVERGUET}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QSTVERGUETUNG"
                                    Binding="{Binding Path=QSTVERGUETUNG, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QSTVERGUETUNG}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QSTREPKOST"
                                    Binding="{Binding Path=QSTREPKOST, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QSTREPKOST}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QSTURKUNDNR"
                                    Binding="{Binding Path=QSTURKUNDNR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QSTURKUNDNR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QSTURSTKNR"
                                    Binding="{Binding Path=QSTURSTKNR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QSTURSTKNR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QSTFILLER"
                                    Binding="{Binding Path=QSTFILLER, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QSTFILLER}}"
                                    Width="Auto" />
            </DataGrid.Columns>
        </DataGrid  >
    </Grid>
</T:ViewBase> 
 
